<?php
//
defined('BY_JYA') or exit('error');
$return=array();
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['setting']=$this->plugin_setting('basic');
	$return['list']=array();
	set_html('title',$$basic['title']?$basic['title']:'活动首页');
	$return['params']=array();
	exi($return);
}
// js 获取数据
if($_RQ['op']=='getlist'){
	$post=get_postdata();
	$params=array('uniacid'=>$_SESSION['uniacid'],'status'=>2);
	$pindex = max(1, intval($post['page']));
	$psize = 10;
	$total='';
	$list=pdo_getslice('jy_h5game_reply',$params,array($pindex,$psize),$total,$fields,'','id desc');
	foreach($list as &$itemv){
		$itemv['logo']=pdo_getcolumn('core_h5game',array('name'=>$itemv['fileName']),'image');
		$itemv['url']=custom_url('jy_h5game/welcome//id='.$itemv['id'],true);
	}
	$return['list']=$list;
	exi($return);
}	
?>